#pragma once

#include "ContactListener.h"

using namespace cocos2d;

class GameRuntimeLayer :
	public CCLayer
{
public:
	GameRuntimeLayer(void);
	~GameRuntimeLayer(void);
	void initPhysics();
	void update(float data);
	void spawnAtPos(CCPoint pos);

	virtual void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);
	virtual bool init();
	CREATE_FUNC(GameRuntimeLayer);
private:
	b2World *pWorld;
	ContactListener *pContactListener;
};

